﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MeasureAbstract.Base
{
    public interface IDeviceBase
    {
        /// <summary>
        /// 设备名称
        /// </summary>
        string Name { get; }

        /// <summary>
        /// 厂家
        /// </summary>
        string Vender { get; }

        /// <summary>
        /// 设备型号
        /// </summary>
        string Model { get; }

        /// <summary>
        /// 设备描述
        /// </summary>
        string Description { get; }

        /// <summary>
        /// 设备连接状态
        /// </summary>
        bool ConnectState { get; set; }

        /// <summary>
        /// 设备故障状态
        /// </summary>
        bool MalfunctionState { get; set; }

        /// <summary>
        /// 连接设备
        /// </summary>
        void Connect();

        /// <summary>
        /// 断开设备连接
        /// </summary>
        void DisConnect();

        /// <summary>
        /// 复位设备
        /// </summary>
        void ReSet();

    }
}
